package cn.chenhongchao.zhaobiaopingtai.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BidExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BidExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBididIsNull() {
            addCriterion("bidId is null");
            return (Criteria) this;
        }

        public Criteria andBididIsNotNull() {
            addCriterion("bidId is not null");
            return (Criteria) this;
        }

        public Criteria andBididEqualTo(Integer value) {
            addCriterion("bidId =", value, "bidid");
            return (Criteria) this;
        }

        public Criteria andBididNotEqualTo(Integer value) {
            addCriterion("bidId <>", value, "bidid");
            return (Criteria) this;
        }

        public Criteria andBididGreaterThan(Integer value) {
            addCriterion("bidId >", value, "bidid");
            return (Criteria) this;
        }

        public Criteria andBididGreaterThanOrEqualTo(Integer value) {
            addCriterion("bidId >=", value, "bidid");
            return (Criteria) this;
        }

        public Criteria andBididLessThan(Integer value) {
            addCriterion("bidId <", value, "bidid");
            return (Criteria) this;
        }

        public Criteria andBididLessThanOrEqualTo(Integer value) {
            addCriterion("bidId <=", value, "bidid");
            return (Criteria) this;
        }

        public Criteria andBididIn(List<Integer> values) {
            addCriterion("bidId in", values, "bidid");
            return (Criteria) this;
        }

        public Criteria andBididNotIn(List<Integer> values) {
            addCriterion("bidId not in", values, "bidid");
            return (Criteria) this;
        }

        public Criteria andBididBetween(Integer value1, Integer value2) {
            addCriterion("bidId between", value1, value2, "bidid");
            return (Criteria) this;
        }

        public Criteria andBididNotBetween(Integer value1, Integer value2) {
            addCriterion("bidId not between", value1, value2, "bidid");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andExplaincontentIsNull() {
            addCriterion("explainContent is null");
            return (Criteria) this;
        }

        public Criteria andExplaincontentIsNotNull() {
            addCriterion("explainContent is not null");
            return (Criteria) this;
        }

        public Criteria andExplaincontentEqualTo(String value) {
            addCriterion("explainContent =", value, "explaincontent");
            return (Criteria) this;
        }

        public Criteria andExplaincontentNotEqualTo(String value) {
            addCriterion("explainContent <>", value, "explaincontent");
            return (Criteria) this;
        }

        public Criteria andExplaincontentGreaterThan(String value) {
            addCriterion("explainContent >", value, "explaincontent");
            return (Criteria) this;
        }

        public Criteria andExplaincontentGreaterThanOrEqualTo(String value) {
            addCriterion("explainContent >=", value, "explaincontent");
            return (Criteria) this;
        }

        public Criteria andExplaincontentLessThan(String value) {
            addCriterion("explainContent <", value, "explaincontent");
            return (Criteria) this;
        }

        public Criteria andExplaincontentLessThanOrEqualTo(String value) {
            addCriterion("explainContent <=", value, "explaincontent");
            return (Criteria) this;
        }

        public Criteria andExplaincontentLike(String value) {
            addCriterion("explainContent like", value, "explaincontent");
            return (Criteria) this;
        }

        public Criteria andExplaincontentNotLike(String value) {
            addCriterion("explainContent not like", value, "explaincontent");
            return (Criteria) this;
        }

        public Criteria andExplaincontentIn(List<String> values) {
            addCriterion("explainContent in", values, "explaincontent");
            return (Criteria) this;
        }

        public Criteria andExplaincontentNotIn(List<String> values) {
            addCriterion("explainContent not in", values, "explaincontent");
            return (Criteria) this;
        }

        public Criteria andExplaincontentBetween(String value1, String value2) {
            addCriterion("explainContent between", value1, value2, "explaincontent");
            return (Criteria) this;
        }

        public Criteria andExplaincontentNotBetween(String value1, String value2) {
            addCriterion("explainContent not between", value1, value2, "explaincontent");
            return (Criteria) this;
        }

        public Criteria andPdfIsNull() {
            addCriterion("pdf is null");
            return (Criteria) this;
        }

        public Criteria andPdfIsNotNull() {
            addCriterion("pdf is not null");
            return (Criteria) this;
        }

        public Criteria andPdfEqualTo(String value) {
            addCriterion("pdf =", value, "pdf");
            return (Criteria) this;
        }

        public Criteria andPdfNotEqualTo(String value) {
            addCriterion("pdf <>", value, "pdf");
            return (Criteria) this;
        }

        public Criteria andPdfGreaterThan(String value) {
            addCriterion("pdf >", value, "pdf");
            return (Criteria) this;
        }

        public Criteria andPdfGreaterThanOrEqualTo(String value) {
            addCriterion("pdf >=", value, "pdf");
            return (Criteria) this;
        }

        public Criteria andPdfLessThan(String value) {
            addCriterion("pdf <", value, "pdf");
            return (Criteria) this;
        }

        public Criteria andPdfLessThanOrEqualTo(String value) {
            addCriterion("pdf <=", value, "pdf");
            return (Criteria) this;
        }

        public Criteria andPdfLike(String value) {
            addCriterion("pdf like", value, "pdf");
            return (Criteria) this;
        }

        public Criteria andPdfNotLike(String value) {
            addCriterion("pdf not like", value, "pdf");
            return (Criteria) this;
        }

        public Criteria andPdfIn(List<String> values) {
            addCriterion("pdf in", values, "pdf");
            return (Criteria) this;
        }

        public Criteria andPdfNotIn(List<String> values) {
            addCriterion("pdf not in", values, "pdf");
            return (Criteria) this;
        }

        public Criteria andPdfBetween(String value1, String value2) {
            addCriterion("pdf between", value1, value2, "pdf");
            return (Criteria) this;
        }

        public Criteria andPdfNotBetween(String value1, String value2) {
            addCriterion("pdf not between", value1, value2, "pdf");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(Integer value) {
            addCriterion("state =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(Integer value) {
            addCriterion("state <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(Integer value) {
            addCriterion("state >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("state >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(Integer value) {
            addCriterion("state <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(Integer value) {
            addCriterion("state <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<Integer> values) {
            addCriterion("state in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<Integer> values) {
            addCriterion("state not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(Integer value1, Integer value2) {
            addCriterion("state between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(Integer value1, Integer value2) {
            addCriterion("state not between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStatechinaIsNull() {
            addCriterion("stateChina is null");
            return (Criteria) this;
        }

        public Criteria andStatechinaIsNotNull() {
            addCriterion("stateChina is not null");
            return (Criteria) this;
        }

        public Criteria andStatechinaEqualTo(String value) {
            addCriterion("stateChina =", value, "statechina");
            return (Criteria) this;
        }

        public Criteria andStatechinaNotEqualTo(String value) {
            addCriterion("stateChina <>", value, "statechina");
            return (Criteria) this;
        }

        public Criteria andStatechinaGreaterThan(String value) {
            addCriterion("stateChina >", value, "statechina");
            return (Criteria) this;
        }

        public Criteria andStatechinaGreaterThanOrEqualTo(String value) {
            addCriterion("stateChina >=", value, "statechina");
            return (Criteria) this;
        }

        public Criteria andStatechinaLessThan(String value) {
            addCriterion("stateChina <", value, "statechina");
            return (Criteria) this;
        }

        public Criteria andStatechinaLessThanOrEqualTo(String value) {
            addCriterion("stateChina <=", value, "statechina");
            return (Criteria) this;
        }

        public Criteria andStatechinaLike(String value) {
            addCriterion("stateChina like", value, "statechina");
            return (Criteria) this;
        }

        public Criteria andStatechinaNotLike(String value) {
            addCriterion("stateChina not like", value, "statechina");
            return (Criteria) this;
        }

        public Criteria andStatechinaIn(List<String> values) {
            addCriterion("stateChina in", values, "statechina");
            return (Criteria) this;
        }

        public Criteria andStatechinaNotIn(List<String> values) {
            addCriterion("stateChina not in", values, "statechina");
            return (Criteria) this;
        }

        public Criteria andStatechinaBetween(String value1, String value2) {
            addCriterion("stateChina between", value1, value2, "statechina");
            return (Criteria) this;
        }

        public Criteria andStatechinaNotBetween(String value1, String value2) {
            addCriterion("stateChina not between", value1, value2, "statechina");
            return (Criteria) this;
        }

        public Criteria andTenderidIsNull() {
            addCriterion("tenderId is null");
            return (Criteria) this;
        }

        public Criteria andTenderidIsNotNull() {
            addCriterion("tenderId is not null");
            return (Criteria) this;
        }

        public Criteria andTenderidEqualTo(Integer value) {
            addCriterion("tenderId =", value, "tenderid");
            return (Criteria) this;
        }

        public Criteria andTenderidNotEqualTo(Integer value) {
            addCriterion("tenderId <>", value, "tenderid");
            return (Criteria) this;
        }

        public Criteria andTenderidGreaterThan(Integer value) {
            addCriterion("tenderId >", value, "tenderid");
            return (Criteria) this;
        }

        public Criteria andTenderidGreaterThanOrEqualTo(Integer value) {
            addCriterion("tenderId >=", value, "tenderid");
            return (Criteria) this;
        }

        public Criteria andTenderidLessThan(Integer value) {
            addCriterion("tenderId <", value, "tenderid");
            return (Criteria) this;
        }

        public Criteria andTenderidLessThanOrEqualTo(Integer value) {
            addCriterion("tenderId <=", value, "tenderid");
            return (Criteria) this;
        }

        public Criteria andTenderidIn(List<Integer> values) {
            addCriterion("tenderId in", values, "tenderid");
            return (Criteria) this;
        }

        public Criteria andTenderidNotIn(List<Integer> values) {
            addCriterion("tenderId not in", values, "tenderid");
            return (Criteria) this;
        }

        public Criteria andTenderidBetween(Integer value1, Integer value2) {
            addCriterion("tenderId between", value1, value2, "tenderid");
            return (Criteria) this;
        }

        public Criteria andTenderidNotBetween(Integer value1, Integer value2) {
            addCriterion("tenderId not between", value1, value2, "tenderid");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userId is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userId is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Integer value) {
            addCriterion("userId =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Integer value) {
            addCriterion("userId <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Integer value) {
            addCriterion("userId >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("userId >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Integer value) {
            addCriterion("userId <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Integer value) {
            addCriterion("userId <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Integer> values) {
            addCriterion("userId in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Integer> values) {
            addCriterion("userId not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Integer value1, Integer value2) {
            addCriterion("userId between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("userId not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andZhongbiaotimeIsNull() {
            addCriterion("zhongbiaoTime is null");
            return (Criteria) this;
        }

        public Criteria andZhongbiaotimeIsNotNull() {
            addCriterion("zhongbiaoTime is not null");
            return (Criteria) this;
        }

        public Criteria andZhongbiaotimeEqualTo(Date value) {
            addCriterion("zhongbiaoTime =", value, "zhongbiaotime");
            return (Criteria) this;
        }

        public Criteria andZhongbiaotimeNotEqualTo(Date value) {
            addCriterion("zhongbiaoTime <>", value, "zhongbiaotime");
            return (Criteria) this;
        }

        public Criteria andZhongbiaotimeGreaterThan(Date value) {
            addCriterion("zhongbiaoTime >", value, "zhongbiaotime");
            return (Criteria) this;
        }

        public Criteria andZhongbiaotimeGreaterThanOrEqualTo(Date value) {
            addCriterion("zhongbiaoTime >=", value, "zhongbiaotime");
            return (Criteria) this;
        }

        public Criteria andZhongbiaotimeLessThan(Date value) {
            addCriterion("zhongbiaoTime <", value, "zhongbiaotime");
            return (Criteria) this;
        }

        public Criteria andZhongbiaotimeLessThanOrEqualTo(Date value) {
            addCriterion("zhongbiaoTime <=", value, "zhongbiaotime");
            return (Criteria) this;
        }

        public Criteria andZhongbiaotimeIn(List<Date> values) {
            addCriterion("zhongbiaoTime in", values, "zhongbiaotime");
            return (Criteria) this;
        }

        public Criteria andZhongbiaotimeNotIn(List<Date> values) {
            addCriterion("zhongbiaoTime not in", values, "zhongbiaotime");
            return (Criteria) this;
        }

        public Criteria andZhongbiaotimeBetween(Date value1, Date value2) {
            addCriterion("zhongbiaoTime between", value1, value2, "zhongbiaotime");
            return (Criteria) this;
        }

        public Criteria andZhongbiaotimeNotBetween(Date value1, Date value2) {
            addCriterion("zhongbiaoTime not between", value1, value2, "zhongbiaotime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}